package com.lyrcsoft;


/**
 * @author fujc-dev@qq.com
 * @date 2023/7/18 11:10
 */

public class Programs {

    static boolean run = true;

    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            while (run) {

            }
            // ?????? 这行会打印吗？
            System.out.println("done .....");
        });
        t.start();
        Thread.sleep(1000);
        // 设置run = false
        run = false;
    }
}
